/**
 * Created by Administrator on 2017/5/4.
 */
const STORAGE_KEY_TODOLIST = 'todos-vuejs'
export default {
  get(){
    return JSON.parse(window.localStorage.getItem(STORAGE_KEY_TODOLIST) || '[]')
  },
  save (items){
    window.localStorage.setItem(STORAGE_KEY_TODOLIST,JSON.stringify(items))
  }
}
